<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib   prefix="c"  
			uri="http://java.sun.com/jsp/jstl/core"  %>
<%@ taglib   prefix="fmt"  
			uri="http://java.sun.com/jsp/jstl/fmt"  %>
<%@ taglib prefix="s"  uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>C.C. COURIER</title>
<link  href="style.css" type="text/css" rel="stylesheet"/>
</head>

<body>
<table width="666" height="317" border="0" align="center" cellpadding="0" cellspacing="0" id="gestionar">
  <tr>
    <td height="192" align="center"><img src="imagenes/logo.jpg" width="445" height="144" /></td>
  </tr>
  <tr>
    <td height="27" id="titulo">REGISTRAR GUIA DE REMISIÓN</td>
  </tr>
  <tr>
    <td>
    	<div id="cont2">
        
           <s:form action="buscarTransportista" method="post">
           
            <fieldset>
            <legend><strong>TRANSPORTISTA</strong></legend><table width="96%" border="0" cellpadding="0" cellspacing="5">
             
			       <s:textfield name="transportistaDTO.idtransportista" label="ID " />
			       <s:textfield name="transportistaDTO.nombretransportista" label="Nombres " />
			       <s:textfield name="transportistaDTO.apepattransportista" label="Apellido " />
			       <s:textfield name="transportistaDTO.licenciatransportista" label="Licencia " />
			       <s:submit value="Buscar Transportista" />
			       </table>
		    </fieldset>
            <br/>
            <fieldset>
           <legend><strong>VEHICULO</strong></legend>
           <table width="100%" border="0" cellpadding="0" cellspacing="5">
        	<s:textfield name="transportistaDTO.licenciatransportista" label="Numero de Placa" />
            <s:textfield name="transportistaDTO.idvehiculo" label="Constancia de Inscrop. MTC" />

           </table>
            
           </fieldset>
                </s:form> 
           <br/>
          
           <fieldset>
           
           <legend><strong>ORDENES DE SERVICIO</strong></legend>
           <table width="100%" border="0" cellpadding="0" cellspacing="5">
             <tr>
               <td>
							 <s:form action="buscarOrdenServicio" method="post">
							 <s:hidden name="transportistaDTO.idtransportista"  value="%{'100'}" />
							 <s:hidden name="guiaremisionDTO.idguiaremision"  value="%{'150'}"    />
							 <s:hidden name="guiaremisionDTO.fechatraslado" value="%{'07/02/2012'}"  />
							 <s:submit value="Buscar Orden de Servicio" />
							 </s:form>
			  </td>
               </tr>
             <tr>
               <td><table width="536" class="box-table-a" summary="Employee Pay Sheet">
                 <thead>
                   <tr>
                     <th width="162" scope="col">Codigo</th>
                     <th width="99" scope="col">Remitente</th>
                     <th width="96" scope="col">Fecha</th>
                     <th width="106" scope="col">Destino</th>
                     <th width="113" scope="col">Items</th>
                     </tr>
                 </thead>
                 <tbody>
              <c:if test="${requestScope.listaOrdenesServicioDTO!=null}"   >
					<c:forEach items="${requestScope.listaOrdenesServicioDTO}" var="bean">
				       <tr>
				            <td width="115" scope="col"><span class="textoformulario">${bean.idordenservicio}</span></td>
						    <td width="90" scope="col"><span class="textoformulario">${bean.origenordens}</span></td>
				            <td width="67" scope="col"><span class="textoformulario">${bean.fechaordens}</span></td>
				            <td width="94" scope="col"><span class="textoformulario">${bean.destinatario}</span></td>
    			            <td width="136" scope="col"><span class="textoformulario">${bean.cantidadmercaderia}</span></td>
			          </tr>
          			 </c:forEach>
		  </c:if>
                 </tbody>
               </table></td>
             </tr>
           </table>
           
             <fieldset>
           <legend><strong>GUIA DE REMISION</strong></legend>
           <table width="95%" border="0" cellpadding="0" cellspacing="5">
  
             <s:form action="registrarGuiaRemision" method="post">
		     <s:textfield name="guiaremisionDTO.idguiaremision" label="Numero ID" readonly="True"  />
		     <s:textfield name="guiaremisionDTO.fechatraslado" label="Fecha Traslado"/>
		     <s:submit value="Registrar Guia Remision" />
		     <s:property value="mensaje"/>
		     </s:form>
             
           </table>
           </fieldset>
          
           
           </fieldset>
           </fieldset>
           
         </form>
        </div>
    </td>
  </tr>
  <tr>
  	<td>
    <div id="cont3">
    	<table width="554" border="0" align="center">
      <tr>
        <td width="352" bgcolor="#FFFFFF"><div align="center">
          
        </div></td>
        <td width="192" bgcolor="#FFFFFF"><div align="left">
          <form id="form2" name="form2" method="post" action="">
            <label>
              <input type="submit" name="Submit2" value="Salir" />
            </label>
          </form>
        </div></td>
      </tr>
    </table>
    </div>
    </td>
  </tr>
</table>
</body>
</html>